function getExamList (params) {
    return $axios({
        url: '/exam/page',
        method: 'get',
        params
    })
}
function getStudentExamList (params) {
    return $axios({
        url: '/exam/studentPage',
        method: 'get',
        params
    })
}
function addExam (params) {
    return $axios({
        url:'/exam',
        method:'post',
        data:{...params}
    })
}
function editExam (params) {
    return $axios({
        url:'/exam',
        method:'put',
        data:{...params}
    })
}
function queryExamById (id) {
    return $axios({
        url: `/exam/${id}`,
        method: 'get'
    })
}

function registerExam (params) {
    return $axios({
        url:'/exam/registerExam',
        method:'post',
        data:{...params}
    })
}
function examScoreList (params) {
    return $axios({
        url: '/exam/scorePage',
        method: 'get',
        params
    })
}
function editScore (params) {
    return $axios({
        url:'/exam/score',
        method:'put',
        data: { ...params }
    })
}
// 修改页面反查详情接口
function queryScoreById (id) {
    return $axios({
        url: `/exam/score/${id}`,
        method: 'get'
    })
}
function studentScorePage(params){
    return $axios({
        url: '/exam/studentScorePage',
        method: 'get',
        params
    })
}

function enableOrDisableExam (params) {
    return $axios({
        url: '/exam',
        method: 'put',
        data: { ...params }
    })
}

function enableOrDisableScore (params) {
    return $axios({
        url: '/exam/score',
        method: 'put',
        data: { ...params }
    })
}
